package com.qfedu.meidijiaju.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 发现帖子
 * </p>
 *
 * @author meidimeiju
 * @since 2022-10-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FaxiantieziYxy implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 帖子id
     */
    @ApiModelProperty(value = "帖子id")
    @TableId(value = "tiezi_id", type = IdType.AUTO)
    private Integer tieziId;

    /**
     * 帖子标题
     */
    @ApiModelProperty(value = "帖子标题")
    private String tizibiaoti;

    /**
     * 帖子内容
     */
    @ApiModelProperty(value = "帖子内容")
    private String tiezineirong;

    /**
     * 图片
     */
    @ApiModelProperty(value = "帖子图片")
    private String tupian;

    /**
     * 圈子类型id
     */
    @ApiModelProperty(value = "帖子对应圈子类型id")
    private Integer quanzitypeId;

    /**
     * 话题id
     */
    @ApiModelProperty(value = "帖子对应话题id")
    private Integer huatiId;

    /**
     * 食谱
     */
    @ApiModelProperty(value = "食谱")
    private String shipu;

    /**
     * 品类id
     */
    @ApiModelProperty(value = "帖子对应品类id")
    private Integer pinleiId;

    /**
     * 评论数
     */
    @ApiModelProperty(value = "评论数")
    private Integer pinglunshu;

    /**
     * 点赞数
     */
    @ApiModelProperty(value = "点赞数")
    private Integer dianzanshu;

    /**
     * 发现类型id
     */
    @ApiModelProperty(value = "发现类型id")
    @TableField("faxianType_id")
    private Integer faxiantypeId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @TableField(exist = false)  // 该属性不是数据表中的字段
    private QuanzitypeYxy quanzitypeYxy;

    @TableField(exist = false)  // 该属性不是数据表中的字段
    private HuatiYxy huatiYxy;

    @TableField(exist = false)  // 该属性不是数据表中的字段
    private PinleiYxy pinleiYxy;

    @TableField(exist = false)  // 该属性不是数据表中的字段
    private FaxiantypeYxy faxiantypeYxy;

    @TableField(exist = false)  // 该属性不是数据表中的字段
    private UserYxy userYxy;


    @TableField(exist = false)  // 该属性不是数据表中的字段
    private List<PinglunYxy> pinglunYxyList;


}
